﻿namespace Tomato.Allure
{
	public abstract class AddOn
	{
		public virtual bool OnStart( IVisualStudio visualStudio )
		{
			return true;
		}

		public virtual void OnEnd( IService allureService )
		{
		}

		public virtual bool OnQueryStatus( IService allureService )
		{
			return true;
		}

		public virtual bool OnExecute( IService allureService )
		{
			return true;
		}

		public virtual bool OnEvent( IService allureService, AllureEvent allureEvent )
		{
			return true;
		}

		public virtual bool OnException( IService allureService, AllureException allureException )
		{
			return true;
		}
	}
}
